<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript">

        function Dog(){
            console.log('------');
        }

        //调用函数
//        Dog();

        //产生狗对象－>[[Dog alloc]init];
        var dog1 = new Dog();
        console.log(typeof dog1);

        var dog2 = new Dog();
        console.log(typeof dog2);

    </script>
</head>
<body>

</body>
</html>